ElasticPress\Feature\Search\Weighting B

Total Complexity 84
Dependencies 3
Dependents 1
Total lines 777
Lines of code 395
Logical lines of code 162
Comment lines 291
Methods 20
Properties 0

Methods 20

Method Rating Maintainability Complexity Lines of code
recursively_inject_weights_to_fields()
B
42 20 49
apply_weighting()
A
43 11 53
update_weighting()
A
47 11 38
get_weightable_fields_for_post_type()
A
40 5 68
get_weightable_fields()
S
49 5 32
do_weighting()
S
60 5 12
post_type_has_fields()
S
55 4 19
get_post_type_default_settings()
S
50 3 31
add_weighting_submenu_page()
S
60 4 13
get_weighting_configuration_with_defaults()
S
62 3 11
adjust_weight_for_cross_fields()
S
69 3 6
setup()
S
64 2 9
register_rest_routes()
S
61 1 13
save_weighting_configuration()
S
71 1 7
redirect()
S
71 1 7
render_settings_section()
S
71 1 7
render_settings_page()
S
72 1 7
get_meta_mode()
S
79 1 3
get_weighting_configuration()
S
78 1 3
handle_save()
S
71 1 7